class OfficeSuppliesModel {
  int? errcode;
  String? errmsg;
  List<OfficeSuppliesItemModel>? data;
  String? message;

  OfficeSuppliesModel({this.errcode, this.errmsg, this.data, this.message});

  OfficeSuppliesModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <OfficeSuppliesItemModel>[];
      json['data'].forEach((v) {
        data!.add(new OfficeSuppliesItemModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class OfficeSuppliesItemModel {
  int? id;
  String? officeName;
  int? officeNumber;
  String? officeModel;
  String? officeType;
  int? keeperId;
  String? keeperName;
  int? number;
  int? money;
  String? date;
  int? operateId;
  String? operateName;
  String? image;

  OfficeSuppliesItemModel(
      {this.id,
        this.officeName,
        this.officeNumber,
        this.officeModel,
        this.officeType,
        this.keeperId,
        this.keeperName,
        this.number,
        this.money,
        this.date,
        this.operateId,
        this.operateName,
        this.image});

  OfficeSuppliesItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    officeName = json['office_name'];
    officeNumber = json['office_number'];
    officeModel = json['office_model'];
    officeType = json['office_type'];
    keeperId = json['keeper_id'];
    keeperName = json['keeper_name'];
    number = json['number'];
    money = json['money'];
    date = json['date'];
    operateId = json['operate_id'];
    operateName = json['operate_name'];
    image = json['image'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['office_name'] = this.officeName;
    data['office_number'] = this.officeNumber;
    data['office_model'] = this.officeModel;
    data['office_type'] = this.officeType;
    data['keeper_id'] = this.keeperId;
    data['keeper_name'] = this.keeperName;
    data['number'] = this.number;
    data['money'] = this.money;
    data['date'] = this.date;
    data['operate_id'] = this.operateId;
    data['operate_name'] = this.operateName;
    data['image'] = this.image;
    return data;
  }
}
